import request from "@/utils/request";

// 新增银行
export function addBank(data) {
  return request({
    url: "/bank",
    method: "post",
    data: data
  });
}
//编辑银行
export function editBank(data) {
  return request({
    url: "/bank",
    method: "put",
    data: data
  });
}
//删除银行
export function deleteBank(id) {
  return request({
    url: "/bank/" + id,
    method: "delete"
  });
}

// 批量删除
export function deleteBankBatch(ids) {
  return request({
    url: `/bank/batchDelete/${ids}`,
    method: "delete"
  });
}
//银行列表
export function getBankList(data) {
  return request({
    url: "/bank",
    method: "get",
    params: data
  });
}
